package com.example.chasshelper;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.example.chasshelper.dao.ClassroomDao;
import com.example.chasshelper.dao.CourseDao;
import com.example.chasshelper.dao.MessageDao;
import com.example.chasshelper.dao.RegistrationDao;
import com.example.chasshelper.dao.SolutionDao;
import com.example.chasshelper.dao.StudentDao;
import com.example.chasshelper.dao.TeacherDao;
import com.example.chasshelper.dao.TestDao;
import com.example.chasshelper.utils.DaoUtils;

public class EditSettingActivity extends AppCompatActivity implements View.OnClickListener{
    private static final String TAG = EditSettingActivity.class.getSimpleName();
    private final Activity mContext = EditSettingActivity.this;
    //控件
    private ImageView iv_back;
    private RelativeLayout rl_language;
    //dao
    private TeacherDao teacherDao= DaoUtils.getTeacherDao();
    private StudentDao studentDao=DaoUtils.getStudentDao();
    private CourseDao courseDao=DaoUtils.getCourseDao();
    private ClassroomDao classroomDao=DaoUtils.getClassroomDao();
    private RegistrationDao registrationDao=DaoUtils.getRegistrationDao();
    private SolutionDao solutionDao = DaoUtils.getSolutionDao();
    private MessageDao messageDao = DaoUtils.getMessageDao();
    private TestDao testDao = DaoUtils.getTestDao();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_edit_setting);
        initUI();
        initData();
    }
    /*
     * 界面初始化
     * */
    private void initUI() {
        //绑定控件
        iv_back = findViewById(R.id.iv_back);
        rl_language = findViewById(R.id.rl_language);
        //点击事件
        iv_back.setOnClickListener(this);
        rl_language.setOnClickListener(this);
    }

    /*
     * 数据初始化
     * */
    private void initData() {
        //dao

        //adapter
    }

    //点击事件
    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.iv_back://返回
                finish();
                break;
            case R.id.btn_save://跳转到语言切换页面
                break;
        }
    }
}